#include "ForceGenerator.h"


ForceGenerator::ForceGenerator(void)
{
}


ForceGenerator::~ForceGenerator(void)
{
}

void ForceGenerator::setActive(bool _active)
{
	active = _active;
}

bool ForceGenerator::isActive()
{
	return active;
}

void ForceGenerator::add(Particle* particle)
{
	particles.push_back(particle);
}

bool ForceGenerator::find(Particle* particle)
{
	std::list<Particle*>::iterator I;
	for(I=particles.begin(); I != particles.end(); ++I) {
		if(*I == particle)
			return true;
	}

	return false;
}

void ForceGenerator::remove(Particle* particle)
{
	particles.remove(particle);
}

void ForceGenerator::clear()
{
	particles.clear();
}